package com.lovo.atm.bean;

import java.time.LocalDate;

public class MessageBean {
    private int id;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    //时间
    private LocalDate date = LocalDate.now();
    //外键
    private AtmUserBean user;
    private String name;
    //交易信息
    private String mas;
    //交易金额
    private int msCount;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public MessageBean() {
    }

    public MessageBean(String mas, int msCount, String name) {
        this.mas = mas;
        this.msCount = msCount;
        this.user = new AtmUserBean();
        this.name=name;
        this.user.setName(name);
    }

    public LocalDate getDate() {
        return date;
    }

    public void setDate(LocalDate date) {
        this.date = date;
    }


    public AtmUserBean getUser() {
        return user;
    }

    public void setUser(AtmUserBean user) {
        this.user = user;
    }

    public String getMas() {
        return mas;
    }

    public void setMas(String mas) {
        this.mas = mas;
    }

    public double getMsCount() {
        return msCount;
    }

    public void setMsCount(int msCount) {
        this.msCount = msCount;
    }
}
